Skip to content

mcpx: fix main CI failures for run 43707720627 - #10488

Closed
dezren39 wants to merge 1 commit into
mainfrom
fix/mcpx-ci-10487
Closed

dezren39 wants to merge 1 commit into
mainfrom
fix/mcpx-ci-10487

Conversation

@dezren39

@dezren39 dezren39 commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Fixes #10487

Summary

Targets the failures reported for mcpx run 43707720627 on 7d3dcebe1e7b3c349db9870aa09ae04f518aa80f.

basic: plugin tests

  • .github/workflows/mcpx.yml: fix the opencode v2 registration preflight to check each registered test file (plugin/opencode/v2/$f) instead of testing the directory path without the filename, which caused registered v2 test file missing: plugin/opencode/v2/ and exited before bun test plugin/opencode/v2/.

basic: lint

  • The same workflow script emitted shellcheck/actionlint warning SC2034 (f appears unused) from the broken loop above; fixing the loop addresses the reported lint failure in the mcpx workflow actionlint/shellcheck leg.

stress: nightly full suite (documented signals)

  • pkgs/mcpx/internal/runner/dispatch_test.go: make TestDispatchedWorkdirPolicyAllocatesARunnerDirectory compare paths after filepath.EvalSymlinks so macOS /var vs /private/var temp-path aliasing does not produce a false mismatch.
  • pkgs/mcpx/docs/compendium.manifest.json: register docs/changes/research-and-findings-nix-slice.md as a docs-history change fragment (role: not-compendium) so TestEveryDocumentHasAChapter no longer reports it as unmanifested.
  • pkgs/mcpx/docs/environment.md: refresh generated script-environment table via go test ./internal/settings -run TestTheEnvironmentDocIsCurrent -update to resolve the stale-doc failure.
  • pkgs/mcpx/internal/e2e/envguard_test.go: classify MCPX_SCRIPT_LANGUAGE in safeMCPX (new registry variable; default-governed, not harness-set per child) to satisfy TestEveryRegistryVariableIsHarnessSetOrSafe.

Verification (targeted, local)

Run in worktree ~/git/fleet/fix-mcpx-ci-10487 on branch fix/mcpx-ci-10487 (269bb49c51):

  • bash scripts/worker-preflight.sh (clean)
  • cd pkgs/mcpx && go test ./internal/settings -run 'TestTheEnvironmentDocIsCurrent|TestEveryDocumentHasAChapter' — ok
  • cd pkgs/mcpx && go test ./internal/e2e -run TestEveryRegistryVariableIsHarnessSetOrSafe — ok
  • cd pkgs/mcpx && go test ./internal/runner -run TestDispatchedWorkdirPolicyAllocatesARunnerDirectory — ok

Not run locally: full mcpx lint in Nix devshell, full Go suite, or full nightly stress matrix (CI-first/heavy). PR CI should validate the workflow/lint/plugin/stress legs.

Notes / possible remaining risk

gh run view --log-failed for this run also showed additional stress failures in the sampled logs (e.g. macOS unix socket bind issues in CLI/daemon temp paths, ubuntu MCPX_SCRIPT_LANGUAGE envguard failure now addressed, and a shutdown-timeout/panic case in internal/daemon on ubuntu). I addressed the concrete, reproducible root causes named in the issue/report and the directly related envguard/doc/manifest/symlink issues visible in current code; if the nightly stress matrix still flakes on environment-sensitive cases, follow-up triage may be needed with the same shuffle seed 7550508743126527922 and job logs.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Tests

    • Improved validation to catch missing registered test files and made working-directory checks more reliable across symlinked paths.
    • Updated test-harness coverage for an additional environment setting.
  • Documentation

    • Reformatted the environment-variable reference without changing its documented information.
    • Added a documentation-history entry for the Nix research slice.

- fix opencode v2 plugin test preflight to check each registered file
- classify MCPX_SCRIPT_LANGUAGE in e2e env guard safe set
- register docs/changes/research-and-findings-nix-slice.md in compendium
- refresh generated docs/environment.md
- make runner dispatch workdir test symlink-safe
@dezren39
dezren39 requested a review from a team as a code owner November 15, 2026 11:37
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T11:37:23.700524Z
We couldn’t complete this review. Comment @codex review to try again.
269bb49 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes update the mcpx workflow’s registered test-file check, adjust environment documentation and harness classification, add a compendium manifest entry, and resolve symlinks in runner path assertions.

Changes: mcpx CI corrections

Layer / File(s) Summary
CI test-path checks
.github/workflows/mcpx.yml, pkgs/mcpx/internal/runner/dispatch_test.go
The workflow checks whether each registered v2 test filename exists. The runner test resolves paths before checking the work directory assertions.
Environment documentation and checks
pkgs/mcpx/docs/compendium.manifest.json, pkgs/mcpx/docs/environment.md, pkgs/mcpx/internal/e2e/envguard_test.go
The manifest adds a docs-history entry. The environment table is reformatted without changing its documented values. The harness classifies MCPX_SCRIPT_LANGUAGE as safe.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • developing-today/code#8900 — The changes update the environment documentation and harness classification checks described in the issue.
  • developing-today/code#9017 — The environment documentation and registry classification changes overlap with two of the reported checks.
  • developing-today/code#8720 — The manifest entry and harness classification change overlap with reported documentation and environment guard failures.
Merge Risk: Minimal · up to 269bb

This change fixes CI and test-harness failures from a scheduled workflow run and does not alter production behavior. No merge-blocking risk was found. Full lint and the stress matrix still run in CI, and other environment-sensitive stress failures may need separate follow-up.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Issue #10487 has one direct link and no active parent. Its coding requirements are:

1. Plugin test preflight (basic: plugin tests): The reported loop tested plugin/opencode/v2/ without $f. The PR…
Confirm the failing step or tool in the basic: lint job (job 132792316891). Check whether go vet, gofmt, shellcheck, or actionlint failed, and whether the SC2034 warning is the only failure. If another tool failed, the PR must fix…
Passed Passed checks: 3 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "mcpx: fix main CI failures for run 43707720627" names the scope (mcpx) and the goal (fixing main CI failures). The changeset addresses several failures from that run: the OpenCode v2 plugin…
Out of Scope Changes check Passed Every changed file maps to a linked item in #10487 or to the PR objectives:
- .github/workflows/mcpx.yml: plugin test preflight fix (item 1).
- pkgs/mcpx/internal/runner/dispatch_test.go: symlink-…
Full details: Title check

Explanation

The title "mcpx: fix main CI failures for run 43707720627" names the scope (mcpx) and the goal (fixing main CI failures). The changeset addresses several failures from that run: the OpenCode v2 plugin-test preflight, the MCPX_SCRIPT_LANGUAGE e2e env guard, the docs compendium manifest and environment table, and a runner workdir symlink test. The title is partially related: it names the overall purpose but not the specific fixes, and the run ID is an identifier rather than a description of the change.

Full details: Out of Scope Changes check

Explanation

Every changed file maps to a linked item in #10487 or to the PR objectives:

  • .github/workflows/mcpx.yml: plugin test preflight fix (item 1).
  • pkgs/mcpx/internal/runner/dispatch_test.go: symlink-safe path comparison (macOS stress failure).
  • pkgs/mcpx/docs/compendium.manifest.json: manifest entry for the unmanifested fragment.
  • pkgs/mcpx/docs/environment.md: regenerated environment table. The change is a formatting-only regeneration of the same variables and descriptions, as the summary states.
  • pkgs/mcpx/internal/e2e/envguard_test.go: classification of MCPX_SCRIPT_LANGUAGE, named in the PR objectives.

The PR does not change daemon, socket, or other code for the unaddressed stress cases. No unrelated change is shown.

Full details: Linked Issues check

Explanation

Issue #10487 has one direct link and no active parent. Its coding requirements are:

  1. Plugin test preflight (basic: plugin tests): The reported loop tested plugin/opencode/v2/ without $f. The PR changes .github/workflows/mcpx.yml (+1/-1) to check plugin/opencode/v2/$f. This addresses the reported cause. PASS for this item.

  2. Lint (basic: lint): The issue does not name the failing tool. Its step runs go vet, gofmt, shellcheck, and actionlint. The PR states that SC2034 from the unused f variable caused the failure. The PR does not show that this was the only failing check. The workflow change removes the unused variable, but the lint job result is not established from the run logs.

  3. Stress failures (macOS, Ubuntu):

    • TestDispatchedWorkdirPolicyAllocatesARunnerDirectory: the test now compares filepath.EvalSymlinks results in dispatch_test.go. Addressed.
    • TestTheEnvironmentDocIsCurrent: docs/environment.md is regenerated (+55/-55, reformat to pipe-delimited rows). Addressed.
    • TestEveryDocumentHasAChapter: docs/changes/research-and-findings-nix-slice.md is added to compendium.manifest.json with role not-compendium. Addressed.
    • TestEveryRegistryVariableIsHarnessSetOrSafe (Ubuntu): MCPX_SCRIPT_LANGUAGE is classified in safeMCPX in envguard_test.go. Addressed.

The PR names other stress failures (macOS Unix socket bind, Ubuntu internal/daemon shutdown-timeout/panic). The issue does not list these as required items. They are not in scope for a FAIL.

Four of the five coding items are supported by the diff summary. The lint item depends on which lint tool failed in the run, and that is not shown in the available evidence.

Resolution

Confirm the failing step or tool in the basic: lint job (job 132792316891). Check whether go vet, gofmt, shellcheck, or actionlint failed, and whether the SC2034 warning is the only failure. If another tool failed, the PR must fix that failure. Then re-assess the lint requirement.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 01b8070f-0d87-4df0-9441-56e29d201de5
Commits

Reviewing files that changed from the base of the PR and between 7d3dceb and 269bb49.

Files selected for processing: 5

  • .github/workflows/mcpx.yml
  • pkgs/mcpx/docs/compendium.manifest.json
  • pkgs/mcpx/docs/environment.md
  • pkgs/mcpx/internal/e2e/envguard_test.go
  • pkgs/mcpx/internal/runner/dispatch_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

developing-today/code: mcpx workflow failing on main (run 43707720627)

1 participant